package com.power.sifa.approve.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.approve.model.Apl_arrive;
import com.power.sifa.approve.model.pageInfo.Apl_arrivePageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  送达信息 Feign
 */
public interface IApl_arriveFeign {

    /**
     * 送达信息分页列表
     */
    @PostMapping("/apl_arrive/list")
    ResponseDTO list(@RequestBody Apl_arrivePageInfo apl_arrivePageInfo);

    /**
    * 查看送达信息
    */
    @GetMapping("/apl_arrive/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除送达信息
    */
    @PostMapping("/apl_arrive/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看送达信息 复合主键使用
    // */
    //@PostMapping("/apl_arrive/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_arrive.Apl_arrivePK pk);

    /**
     * 修改或保存送达信息
     */
    @PostMapping("/apl_arrive/save")
    ResponseDTO save(@RequestBody Apl_arrive  apl_arrive);

    ///**
    // * 删除送达信息 复合主键使用
    // */
    //@PostMapping("/apl_arrive/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_arrive.Apl_arrivePK pk);

    /**
     * 批量删除送达信息
     */
    @PostMapping("/apl_arrive/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_arrive/output")
    void output(HttpServletResponse response, @RequestBody Apl_arrivePageInfo apl_arrivePageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_arrive/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_arrive/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;

    /**
     * 查询可送达人员列表
     * @param applyid
     * @return
     */
    @PostMapping("/apl_arrive/queryDeliveryPersonnel")
    ResponseDTO queryDeliveryPersonnel(String applyid);


    /**
     * 查询送达信息-带出受送达人
     * @param applyid
     * @return
     */
    @PostMapping("/apl_arrive/queryArriveByApplyid")
    ResponseDTO queryArriveByApplyid(String applyid);
}
